<%@codepage="65001"%>
<%session.codepage="65001"%>
<!-- #include virtual=/inc/dbConn.asp -->
<!-- #include virtual=/inc/function.asp -->
<%
	xMode = Request("xMode")
	fullLotNo = Request("fullLotNo")
	lotSubNo = Request("lotSubNo")
	types = Request("type")
	rank = Request("rank")
	hisRule = Request("hisRule")
	If hisRule <> "" Then 
		divRule = Split(hisRule, "/")
		sFullLotNo = divRule(0)
		sLotSubNo = divRule(1)
		sTypes = divRule(2)
		sRank = aFieldValue("SELECT TOP 1 rank FROM tblCheckingRule WHERE fullLotNo='" & sFullLotNo & "' AND lotSubNo='" & sLotSubNo & "' AND  type='" & sTypes & "'")
	Else 
		sFullLotNo = fullLotNo
		sLotSubNo = lotSubNo
		sTypes = types
		sRank = rank

	End If 
	If types = "M" Then
		part = "가공"
	Else 
		part = "검사"
	End If 

	subLot = ""
	If lotSubNo <> "0" Then subLot = "-" & lotSubNo End If 
	lotNo = fullLotNo & subLot
%>
<!-- #include virtual=/inc/header.inc.asp -->  

<%
	oldRuleSql = "SELECT A.fullLotNo, A.lotSubNo, A.type, C.prdNm, C.etcPrdCd FROM tblCheckingRule A INNER JOIN tblOrder B ON A.fullLotNo=B.lotYear+B.lotNo " & _
				"	LEFT JOIN tblProduct C ON B.prdCd=C.prdCd " & _
				"	GROUP BY A.fullLotNo, A.lotSubNo, A.type, C.prdNm, C.etcPrdCd ORDER BY C.prdNm ASC, type "
	Set ruleRs=Server.CreateObject("ADODB.RecordSet")
	ruleRs.open oldRuleSql, DbCon, 1
	If ruleRs.eof Or ruleRs.bof Then 
	Else 
		Do Until ruleRs.eof Or ruleRs.bof
			subLot = ""
			If ruleRs("lotSubNo") <> "0" Then 
				subLot = "-" & ruleRs("lotSubNo")
			End If 
			If ruleRs("type") = "M" Then 
				vType = "(가공)"
			Else 
				vType = "(검사)"
			End If 
			chk = ""
			If hisRule = ruleRs("fullLotNo") & "/" & ruleRs("lotSubNo") & "/" & ruleRs("type") Then 
				chk = "SELECTED"
			End If 
			etcPrdCd = ruleRs("etcPrdCd")
			If etcPrdCd <> "" Then etcPrdCd = "{" & etcPrdCd & "} " End If 
			oldRuleOptions = oldRuleOptions & "<option value=""" & ruleRs("fullLotNo") & "/" & ruleRs("lotSubNo") & "/" & ruleRs("type") & """ " & chk & ">" & etcPrdCd & ruleRs("prdNm") & "[" & vType & ruleRs("fullLotNo") & subLot & "]</option>"

		ruleRs.movenext
		Loop 
	End If


	SQL = "SELECT checkDt, chk1, chk2, chk3, chk4, chk5, chk6, chk7, chk8, chk9, chk10 " & _
			", chk11, chk12, chk13, chk14, chk15, chk16, chk17, chk18, chk19, chk20 " & _ 
			", CONVERT(VARCHAR(10),chk1a) chk1a, CONVERT(VARCHAR(10),chk1b) chk1b " & _
			", CONVERT(VARCHAR(10),chk2a) chk2a, CONVERT(VARCHAR(10),chk2b) chk2b " & _
			", CONVERT(VARCHAR(10),chk3a) chk3a, CONVERT(VARCHAR(10),chk3b) chk3b " & _
			", CONVERT(VARCHAR(10),chk4a) chk4a, CONVERT(VARCHAR(10),chk4b) chk4b " & _
			", CONVERT(VARCHAR(10),chk5a) chk5a, CONVERT(VARCHAR(10),chk5b) chk5b " & _
			", CONVERT(VARCHAR(10),chk6a) chk6a, CONVERT(VARCHAR(10),chk6b) chk6b " & _
			", CONVERT(VARCHAR(10),chk7a) chk7a, CONVERT(VARCHAR(10),chk7b) chk7b " & _
			", CONVERT(VARCHAR(10),chk8a) chk8a, CONVERT(VARCHAR(10),chk8b) chk8b " & _
			", CONVERT(VARCHAR(10),chk9a) chk9a, CONVERT(VARCHAR(10),chk9b) chk9b " & _
			", CONVERT(VARCHAR(10),chk10a) chk10a, CONVERT(VARCHAR(10),chk10b) chk10b " & _
			", CONVERT(VARCHAR(10),chk11a) chk11a, CONVERT(VARCHAR(10),chk11b) chk11b " & _
			", CONVERT(VARCHAR(10),chk12a) chk12a, CONVERT(VARCHAR(10),chk12b) chk12b " & _
			", CONVERT(VARCHAR(10),chk13a) chk13a, CONVERT(VARCHAR(10),chk13b) chk13b " & _
			", CONVERT(VARCHAR(10),chk14a) chk14a, CONVERT(VARCHAR(10),chk14b) chk14b " & _
			", CONVERT(VARCHAR(10),chk15a) chk15a, CONVERT(VARCHAR(10),chk15b) chk15b " & _
			", CONVERT(VARCHAR(10),chk16a) chk16a, CONVERT(VARCHAR(10),chk16b) chk16b " & _
			", CONVERT(VARCHAR(10),chk17a) chk17a, CONVERT(VARCHAR(10),chk17b) chk17b " & _
			", CONVERT(VARCHAR(10),chk18a) chk18a, CONVERT(VARCHAR(10),chk18b) chk18b " & _
			", CONVERT(VARCHAR(10),chk19a) chk19a, CONVERT(VARCHAR(10),chk19b) chk19b " & _
			", CONVERT(VARCHAR(10),chk20a) chk20a, CONVERT(VARCHAR(10),chk20b) chk20b " & _
			" FROM tblCheckingRule WHERE fullLotNo='" & sFullLotNo & "' AND lotSubNo='" & sLotSubNo & "' AND  type='" & sTypes & "' AND  rank='" & sRank & "'" 
	Set Rs=Server.CreateObject("ADODB.RecordSet")
	Rs.open SQL, DbCon, 1
	
	chk1 = "&nbsp;"
	chk2 = "&nbsp;"
	chk3 = "&nbsp;"
	chk4 = "&nbsp;"
	chk5 = "&nbsp;"
	chk6 = "&nbsp;"
	chk7 = "&nbsp;"
	chk8 = "&nbsp;"
	chk9 = "&nbsp;"
	chk10 = "&nbsp;"
	chk11 = "&nbsp;"
	chk12 = "&nbsp;"
	chk13 = "&nbsp;"
	chk14 = "&nbsp;"
	chk15 = "&nbsp;"
	chk16 = "&nbsp;"
	chk17 = "&nbsp;"
	chk18 = "&nbsp;"
	chk19 = "&nbsp;"
	chk20 = "&nbsp;"

	If Rs.eof Or Rs.bof Then 
	Else 
		Do Until Rs.eof Or Rs.bof
			checkDt = Rs("checkDt")
			For i=1 To 20
				execute("chkVal=Rs(""chk" & i & """)")
				If Left(chkVal,1) = "Y" Then 
					execute("chk" & i & "Show = ""checked""")
				Else
					execute("chk" & i & "Show = """"")
				End If 
				If Right(chkVal,1) = "P" Then 
					execute("chk" & i & "Pin = ""checked""")
					execute("input" & i & "Bg = ""#F2F2F2""")
					execute("title" & i & "P = ""P-""")
				Else
					execute("chk" & i & "Pin = """"")
					execute("input" & i & "Bg = ""#FFFFFF""")
				End If 
			Next 
			If Rs("chk1a") <> "0.000" Or Rs("chk1b") <> "0.000" Then 
				chk1 = title1P & Rs("chk1b") & "<br> ~ " & Rs("chk1a") 
				chk1a = Rs("chk1a")
				chk1b = Rs("chk1b")
			End If 
			If Rs("chk2a") <> "0.000" Or Rs("chk2b") <> "0.000" Then 
				chk2 = title2P & Rs("chk2b") & "<br> ~ " & Rs("chk2a") 
				chk2a = Rs("chk2a")
				chk2b = Rs("chk2b")
			End If 
			If Rs("chk3a") <> "0.000" Or Rs("chk3b") <> "0.000" Then 
				chk3 = title3P & Rs("chk3b") & "<br> ~ " & Rs("chk3a") 
				chk3a = Rs("chk3a")
				chk3b = Rs("chk3b")
			End If 
			If Rs("chk4a") <> "0.000" Or Rs("chk4b") <> "0.000" Then 
				chk4 = title4P & Rs("chk4b") & "<br> ~ " & Rs("chk4a") 
				chk4a = Rs("chk4a")
				chk4b = Rs("chk4b")
			End If 
			If Rs("chk5a") <> "0.000" Or Rs("chk5b") <> "0.000" Then 
				chk5 = title5P & Rs("chk5b") & "<br> ~ " & Rs("chk5a") 
				chk5a = Rs("chk5a")
				chk5b = Rs("chk5b")
			End If 
			If Rs("chk6a") <> "0.000" Or Rs("chk6b") <> "0.000" Then 
				chk6 = title6P & Rs("chk6b") & "<br> ~ " & Rs("chk6a") 
				chk6a = Rs("chk6a")
				chk6b = Rs("chk6b")
			End If 
			If Rs("chk7a") <> "0.000" Or Rs("chk7b") <> "0.000" Then 
				chk7 = title7P & Rs("chk7b") & "<br> ~ " & Rs("chk7a") 
				chk7a = Rs("chk7a")
				chk7b = Rs("chk7b")
			End If 
			If Rs("chk8a") <> "0.000" Or Rs("chk8b") <> "0.000" Then 
				chk8 = title8P & Rs("chk8b") & "<br> ~ " & Rs("chk8a") 
				chk8a = Rs("chk8a")
				chk8b = Rs("chk8b")
			End If 
			If Rs("chk9a") <> "0.000" Or Rs("chk9b") <> "0.000" Then 
				chk9 = title9P & Rs("chk9b") & "<br> ~ " & Rs("chk9a") 
				chk9a = Rs("chk9a")
				chk9b = Rs("chk9b")
			End If 
			If Rs("chk10a") <> "0.000" Or Rs("chk10b") <> "0.000" Then 
				chk10 = title10P & Rs("chk10b") &  "<br> ~ " & Rs("chk10a") 
				chk10a = Rs("chk10a")
				chk10b = Rs("chk10b")
			End If 
			If Rs("chk11a") <> "0.000" Or Rs("chk11b") <> "0.000" Then 
				chk11 = title11P & Rs("chk11b") & "<br> ~ " & Rs("chk11a") 
				chk11a = Rs("chk11a")
				chk11b = Rs("chk11b")
			End If 
			If Rs("chk12a") <> "0.000" Or Rs("chk12b") <> "0.000" Then 
				chk12 = title12P & Rs("chk12b") & "<br> ~ " & Rs("chk12a") 
				chk12a = Rs("chk12a")
				chk12b = Rs("chk12b")
			End If 
			If Rs("chk13a") <> "0.000" Or Rs("chk13b") <> "0.000" Then 
				chk13 =  title13P & Rs("chk13b") &"<br> ~ " & Rs("chk13a") 
				chk13a = Rs("chk13a")
				chk13b = Rs("chk13b")
			End If 
			If Rs("chk14a") <> "0.000" Or Rs("chk14b") <> "0.000" Then 
				chk14 = title14P & Rs("chk14b") & "<br> ~ " & Rs("chk14a") 
				chk14a = Rs("chk14a")
				chk14b = Rs("chk14b")
			End If 
			If Rs("chk15a") <> "0.000" Or Rs("chk15b") <> "0.000" Then 
				chk15 = title15P & Rs("chk15b") & "<br> ~ " & Rs("chk15a") 
				chk15a = Rs("chk15a")
				chk15b = Rs("chk15b")
			End If 
			If Rs("chk16a") <> "0.000" Or Rs("chk16b") <> "0.000" Then 
				chk16 = title16P & Rs("chk16b") & "<br> ~ " & Rs("chk16a")
				chk16a = Rs("chk16a")
				chk16b = Rs("chk16b")
			End If 
			If Rs("chk17a") <> "0.000" Or Rs("chk17b") <> "0.000" Then 
				chk17 = title17P & Rs("chk17b") & "<br> ~ " & Rs("chk17a")
				chk17a = Rs("chk17a")
				chk17b = Rs("chk17b") 
			End If 
			If Rs("chk18a") <> "0.000" Or Rs("chk18b") <> "0.000" Then 
				chk18 = title18P & Rs("chk18b") & "<br> ~ " & Rs("chk18a")
				chk18a = Rs("chk18a")
				chk18b = Rs("chk18b") 
			End If 
			If Rs("chk19a") <> "0.000" Or Rs("chk19b") <> "0.000" Then 
				chk19 = title19P & Rs("chk19b") & "<br> ~ " & Rs("chk19a") 
				chk19a = Rs("chk19a")
				chk19b = Rs("chk19b")
			End If 
			If Rs("chk20a") <> "0.000" Or Rs("chk20b") <> "0.000" Then 
				chk20 = title20P & Rs("chk20b") & "<br> ~ " & Rs("chk20a") 
				chk20a = Rs("chk20a")
				chk20b = Rs("chk20b")
			End If 

		Rs.movenext
		Loop 
	End If

	If checkDt = "" Then checkDt = Date() End If 

%>
<style>
	.noTitle {width:58px;text-align:center;}
</style>
<BODY topmargin="0" leftmargin="0">
<br>
<!-- 검색 영역 시작
<div style="text-align:left">
<table border="0" cellpadding="0" cellspacing="0" width="1335" style="margin-left:5px;">
	<tr height="40">
		<td style="padding: 0px 0 0px 10px;background-image:url(/inc/layout/panel-title-light-bg.gif);font-weight:bold;text-align:left" width="100%" class="lTD_trbl">
			이름 <input type="text" name="userNm" id="findUserNm" class="inputBox" style="width:80px;ime-Mode:active"> &nbsp;
			<input type="button" onClick="grid01List()" value="검 색" class="inputBtn">&nbsp;
			<input type="button" onClick="fnSearchReset()" value="Reset" class="inputBtn">
		</td>
	</tr>
</table>
</div> -->
<!-- 검색 영역 끝 -->

<!-- 그리드 시작 -->
<div style="text-align:left">
<table border="0" cellpadding="0" cellspacing="0" width="1235" style="margin-left:5px;text-align:left">
	<tr>
		<td width="100%" class="lTD_trbl" valign="top" style="padding: 5px 5px 5px 5px;">
			<table border="0" cellpadding="0" cellspacing="0" width="1325">
				<tr height="24">
					<td style="padding: 0 0 0 0;text-align:left;font-weight:bold" width="50%"><div><input type="text" class="subTitle" style="width:80px;" value="<%=part%> 기준" ReadOnly> 
					&nbsp; LotNo : <%=lotNo%> &nbsp; &nbsp; &nbsp; 
					<select name="hisRule" id="hisRule" onChange="fnSetHisRule(this.value)">
						<option value="">- 기존 기준 적용 -</option>
						<%=oldRuleOptions%>
					</select>
				</tr>
			</table>
			<table border="0" cellpadding="0" cellspacing="0" width="1325"><tr><td style="background-color:#3366CC;height:2px"></td></tr></table>
			<table border="0" cellpadding="0" cellspacing="0" width="1325">
				<tr>
				  <td width="100%" class="lTD_trbl" style="padding: 5px 5px 5px 5px; text-align:center">
					<table border="0" cellpadding="0" cellspacing="0" width="1315">
						<input type="hidden" name="fullLotNo" id="fullLotNo" value="<%=fullLotNo%>">
						<input type="hidden" name="lotSubNo" id="lotSubNo" value="<%=lotSubNo%>">
						<input type="hidden" name="rank" id="rank" value="<%=rank%>">
						<input type="hidden" name="type" id="type" value="<%=types%>">
						<tr>
							<td height="30" width="100%" class="lTD_00b0" style="padding: 0 0 5px 15px; text-align:left; font-weight:bold">
								<span class="noTitle" style="margin-left:40px">1</span>
								<span class="noTitle">2</span>
								<span class="noTitle">3</span>
								<span class="noTitle">4</span>
								<span class="noTitle">5</span>
								<span class="noTitle">6</span>
								<span class="noTitle">7</span>
								<span class="noTitle">8</span>
								<span class="noTitle">9</span>
								<span class="noTitle">10</span>
								<span class="noTitle" style="margin-left:5px">11</span>
								<span class="noTitle">12</span>
								<span class="noTitle">13</span>
								<span class="noTitle">14</span>
								<span class="noTitle">15</span>
								<span class="noTitle" style="margin-left:5px">16</span>
								<span class="noTitle">17</span>
								<span class="noTitle">18</span>
								<span class="noTitle">19</span>
								<span class="noTitle">20</span>
								<br>
								<span class="noTitle" style="margin-left:40px"><input type="checkbox" id="show1" style="border:0" <%=chk1Show%>>S<input type="checkbox" id="pin1" style="border:0" <%=chk1Pin%>>P</span>
								<span class="noTitle"><input type="checkbox" id="show2" style="border:0" <%=chk2Show%>>S<input type="checkbox" id="pin2" style="border:0" <%=chk2Pin%>>P</span>
								<span class="noTitle"><input type="checkbox" id="show3" style="border:0" <%=chk3Show%>>S<input type="checkbox" id="pin3" style="border:0" <%=chk3Pin%>>P</span> 
								<span class="noTitle"><input type="checkbox" id="show4" style="border:0" <%=chk4Show%>>S<input type="checkbox" id="pin4" style="border:0" <%=chk4Pin%>>P</span> 
								<span class="noTitle"><input type="checkbox" id="show5" style="border:0" <%=chk5Show%>>S<input type="checkbox" id="pin5" style="border:0" <%=chk5Pin%>>P</span> 
								<span class="noTitle"><input type="checkbox" id="show6" style="border:0" <%=chk6Show%>>S<input type="checkbox" id="pin6" style="border:0" <%=chk6Pin%>>P</span> 
								<span class="noTitle"><input type="checkbox" id="show7" style="border:0" <%=chk7Show%>>S<input type="checkbox" id="pin7" style="border:0" <%=chk7Pin%>>P</span> 
								<span class="noTitle"><input type="checkbox" id="show8" style="border:0" <%=chk8Show%>>S<input type="checkbox" id="pin8" style="border:0" <%=chk8Pin%>>P</span> 
								<span class="noTitle"><input type="checkbox" id="show9" style="border:0" <%=chk9Show%>>S<input type="checkbox" id="pin9" style="border:0" <%=chk9Pin%>>P</span> 
								<span class="noTitle"><input type="checkbox" id="show10" style="border:0" <%=chk10Show%>>S<input type="checkbox" id="pin10" style="border:0" <%=chk10Pin%>>P</span> 
								<span class="noTitle" style="margin-left:5px"><input type="checkbox" id="show11" style="border:0" <%=chk11Show%>>S<input type="checkbox" id="pin11" style="border:0" <%=chk11Pin%>>P</span> 
								<span class="noTitle"><input type="checkbox" id="show12" style="border:0" <%=chk12Show%>>S<input type="checkbox" id="pin12" style="border:0" <%=chk12Pin%>>P</span> 
								<span class="noTitle"><input type="checkbox" id="show13" style="border:0" <%=chk13Show%>>S<input type="checkbox" id="pin13" style="border:0" <%=chk13Pin%>>P</span> 
								<span class="noTitle"><input type="checkbox" id="show14" style="border:0" <%=chk14Show%>>S<input type="checkbox" id="pin14" style="border:0" <%=chk14Pin%>>P</span> 
								<span class="noTitle"><input type="checkbox" id="show15" style="border:0" <%=chk15Show%>>S<input type="checkbox" id="pin15" style="border:0" <%=chk15Pin%>>P</span> 
								<span class="noTitle" style="margin-left:5px"><input type="checkbox" id="show16" style="border:0" <%=chk16Show%>>S<input type="checkbox" id="pin16" style="border:0" <%=chk16Pin%>>P</span> 
								<span class="noTitle"><input type="checkbox" id="show17" style="border:0" <%=chk17Show%>>S<input type="checkbox" id="pin17" style="border:0" <%=chk17Pin%>>P</span> 
								<span class="noTitle"><input type="checkbox" id="show18" style="border:0" <%=chk18Show%>>S<input type="checkbox" id="pin18" style="border:0" <%=chk18Pin%>>P</span> 
								<span class="noTitle"><input type="checkbox" id="show19" style="border:0" <%=chk19Show%>>S<input type="checkbox" id="pin19" style="border:0" <%=chk19Pin%>>P</span> 
								<span class="noTitle"><input type="checkbox" id="show20" style="border:0" <%=chk20Show%>>S<input type="checkbox" id="pin20" style="border:0" <%=chk20Pin%>>P</span> 
								</span><br>
								MIN : <input type="text" id="chk1b" style="width:55px;margin-left:2px" class="specialBox" value="<%=chk1b%>">&nbsp;
								<input type="text" id="chk2b" style="width:55px" class="inputBox" value="<%=chk2b%>">&nbsp;
								<input type="text" id="chk3b" style="width:55px" class="inputBox" value="<%=chk3b%>">&nbsp;
								<input type="text" id="chk4b" style="width:55px" class="inputBox" value="<%=chk4b%>">&nbsp;
								<input type="text" id="chk5b" style="width:55px" class="inputBox" value="<%=chk5b%>">&nbsp;
								<input type="text" id="chk6b" style="width:55px" class="inputBox" value="<%=chk6b%>">&nbsp;
								<input type="text" id="chk7b" style="width:55px" class="inputBox" value="<%=chk7b%>">&nbsp;
								<input type="text" id="chk8b" style="width:55px" class="inputBox" value="<%=chk8b%>">&nbsp;
								<input type="text" id="chk9b" style="width:55px" class="inputBox" value="<%=chk9b%>">&nbsp;
								<input type="text" id="chk10b" style="width:55px" class="inputBox" value="<%=chk10b%>">&nbsp;
								<input type="text" id="chk11b" style="width:55px" class="inputBox" value="<%=chk11b%>">&nbsp;
								<input type="text" id="chk12b" style="width:55px" class="inputBox" value="<%=chk12b%>">&nbsp;
								<input type="text" id="chk13b" style="width:55px" class="inputBox" value="<%=chk13b%>">&nbsp;
								<input type="text" id="chk14b" style="width:55px" class="inputBox" value="<%=chk14b%>">&nbsp;
								<input type="text" id="chk15b" style="width:55px" class="inputBox" value="<%=chk15b%>">&nbsp;
								<input type="text" id="chk16b" style="width:55px" class="inputBox" value="<%=chk16b%>">&nbsp;
								<input type="text" id="chk17b" style="width:55px" class="inputBox" value="<%=chk17b%>">&nbsp;
								<input type="text" id="chk18b" style="width:55px" class="inputBox" value="<%=chk18b%>">&nbsp;
								<input type="text" id="chk19b" style="width:55px" class="inputBox" value="<%=chk19b%>">&nbsp;
								<input type="text" id="chk20b" style="width:55px" class="inputBox" value="<%=chk20b%>">&nbsp;
								<br>
								MAX : <input type="text" id="chk1a" style="width:55px" class="specialBox" value="<%=chk1a%>">&nbsp;
								<input type="text" id="chk2a" style="width:55px;" class="inputBox" value="<%=chk2a%>">&nbsp;
								<input type="text" id="chk3a" style="width:55px" class="inputBox" value="<%=chk3a%>">&nbsp;
								<input type="text" id="chk4a" style="width:55px" class="inputBox" value="<%=chk4a%>">&nbsp;
								<input type="text" id="chk5a" style="width:55px" class="inputBox" value="<%=chk5a%>">&nbsp;
								<input type="text" id="chk6a" style="width:55px" class="inputBox" value="<%=chk6a%>">&nbsp;
								<input type="text" id="chk7a" style="width:55px" class="inputBox" value="<%=chk7a%>">&nbsp;
								<input type="text" id="chk8a" style="width:55px" class="inputBox" value="<%=chk8a%>">&nbsp;
								<input type="text" id="chk9a" style="width:55px" class="inputBox" value="<%=chk9a%>">&nbsp;
								<input type="text" id="chk10a" style="width:55px" class="inputBox" value="<%=chk10a%>">&nbsp;
								<input type="text" id="chk11a" style="width:55px" class="inputBox" value="<%=chk11a%>">&nbsp;
								<input type="text" id="chk12a" style="width:55px" class="inputBox" value="<%=chk12a%>">&nbsp;
								<input type="text" id="chk13a" style="width:55px" class="inputBox" value="<%=chk13a%>">&nbsp;
								<input type="text" id="chk14a" style="width:55px" class="inputBox" value="<%=chk14a%>">&nbsp;
								<input type="text" id="chk15a" style="width:55px" class="inputBox" value="<%=chk15a%>">&nbsp;
								<input type="text" id="chk16a" style="width:55px" class="inputBox" value="<%=chk16a%>">&nbsp;
								<input type="text" id="chk17a" style="width:55px" class="inputBox" value="<%=chk17a%>">&nbsp;
								<input type="text" id="chk18a" style="width:55px" class="inputBox" value="<%=chk18a%>">&nbsp;
								<input type="text" id="chk19a" style="width:55px" class="inputBox" value="<%=chk19a%>">&nbsp;
								<input type="text" id="chk20a" style="width:55px" class="inputBox" value="<%=chk20a%>">&nbsp;
							</td>
						</tr>
						<form name="frm">
						<tr>
							<td height="30" width="100%" class="lTD_00b0" style="padding-left:15px;font-weight:bold">
								검사일 : <input type="text" class="inputBox" style="text-align:center; width:85px" id="checkDt" value="<%=checkDt%>" onclick="Calendar_D(document.frm.checkDt);"> &nbsp; 시간 : <input type="text" id="memo" style="width:100px;" maxlength="10"> &nbsp; ※ Pin Test PASS : Y / Fail : N
								<input type="button" value="저장" class="inputBtn" onClick="fnSaveRule()" style="margin-left:467px"> 
								<input type="button" value="신규" class="inputBtn" onClick="fnResetRule()">
								</span>
							</td>
						</tr>
						</form>
						<tr>
							<td height="30" width="100%" class="lTD_00b0" style="padding: 0 0 0 15px; text-align:left; font-weight:bold">
								측 정 : <input type="text" id="result1" style="width:55px;margin-left:0px;background-color:<%=input1Bg%>" class="specialBox">&nbsp;
								<input type="text" id="result2" style="width:55px;background-color:<%=input2Bg%>" class="inputBox">&nbsp;
								<input type="text" id="result3" style="width:55px;background-color:<%=input3Bg%>" class="inputBox">&nbsp;
								<input type="text" id="result4" style="width:55px;background-color:<%=input4Bg%>" class="inputBox">&nbsp;
								<input type="text" id="result5" style="width:55px;background-color:<%=input5Bg%>" class="inputBox">&nbsp;
								<input type="text" id="result6" style="width:55px;background-color:<%=input6Bg%>" class="inputBox">&nbsp;
								<input type="text" id="result7" style="width:55px;background-color:<%=input7Bg%>" class="inputBox">&nbsp;
								<input type="text" id="result8" style="width:55px;background-color:<%=input8Bg%>" class="inputBox">&nbsp;
								<input type="text" id="result9" style="width:55px;background-color:<%=input9Bg%>" class="inputBox">&nbsp;
								<input type="text" id="result10" style="width:55px;background-color:<%=input10Bg%>" class="inputBox">&nbsp;
								<input type="text" id="result11" style="width:55px;background-color:<%=input11Bg%>" class="inputBox">&nbsp;
								<input type="text" id="result12" style="width:55px;background-color:<%=input12Bg%>" class="inputBox">&nbsp;
								<input type="text" id="result13" style="width:55px;background-color:<%=input13Bg%>" class="inputBox">&nbsp;
								<input type="text" id="result14" style="width:55px;background-color:<%=input14Bg%>" class="inputBox">&nbsp;
								<input type="text" id="result15" style="width:55px;background-color:<%=input15Bg%>" class="inputBox">&nbsp;
								<input type="text" id="result16" style="width:55px;background-color:<%=input16Bg%>" class="inputBox">&nbsp;
								<input type="text" id="result17" style="width:55px;background-color:<%=input17Bg%>" class="inputBox">&nbsp;
								<input type="text" id="result18" style="width:55px;background-color:<%=input18Bg%>" class="inputBox">&nbsp;
								<input type="text" id="result19" style="width:55px;background-color:<%=input19Bg%>" class="inputBox">&nbsp;
								<input type="text" id="result20" style="width:55px;background-color:<%=input20Bg%>" class="inputBox">&nbsp;
							</td>
						</tr>
						<tr>
							<td height="30" width="100%" class="lTD_00b0" style="padding: 0 0 0 20px; text-align:left; font-weight:bold"> 
								<input type="hidden" name="priority" id="priority">
								<select name="visual" id="visual">
									<option value="Y">외관 : 합격</option>
									<option value="N">외관 : 불합격</option>
								</select> &nbsp; 
								<select name="flag" id="flag">
									<option value="Y">유효</option>
									<option value="N">무효</option>
								</select> &nbsp;<input type="text" id="accessInfo" style="font-weight:normal;width:750px; border:0px">
								<span>
								<input type="button" value="저장" class="inputBtn" onClick="fnSave()"> 
								<input type="button" value="신규" class="inputBtn" onClick="fnReset()">
								</span>
							</td>
						</tr>
					</table>
				  </td>
				</tr>
			</table><br>
			<table border="0" cellpadding="0" cellspacing="0" width="1325">
				<tr height="24">
					<td style="padding: 0 0 0 0;text-align:left" width="50%"><div><input type="text" class="subTitle" style="width:80px;" value="측정 결과" ReadOnly>&nbsp;<a href="javascript:grid01List()">[새로고침]</a> &nbsp;</div> </td>
					<td style="padding: 0 20 0 0;" align="right" width="50%"><B>Total :</B> <span id="grid01Cnt" style="font-weight:bold">0</span></td>
				</tr>
			</table>
			<table border="0" cellpadding="0" cellspacing="0" width="1325"><tr><td style="background-color:#3366CC;height:2px"></td></tr></table>
			<div class="tblContainer" id="gridLayer01" style="width:1325px; height:300px; overflow-y:scroll">
			<form name="frmGrid01">
			<table border="0" id="Grid01" width="1308" cellpadding="0" cellspacing="0">
				<thead>
				<tr bgcolor="#EEECE7" height="25" align="center">
					<td width="68" class="lTD_0rbl gridTitle">LotNo</td>
					<td width="50" class="lTD_0rb0 gridTitle">시간</td>
					<td width="55" class="lTD_0rb0 gridTitle"><%=chk1%></td>
					<td width="55" class="lTD_0rb0 gridTitle"><%=chk2%></td>
					<td width="55" class="lTD_0rb0 gridTitle"><%=chk3%></td>
					<td width="55" class="lTD_0rb0 gridTitle"><%=chk4%></td>
					<td width="55" class="lTD_0rb0 gridTitle"><%=chk5%></td>
					<td width="55" class="lTD_0rb0 gridTitle"><%=chk6%></td>
					<td width="55" class="lTD_0rb0 gridTitle"><%=chk7%></td>
					<td width="55" class="lTD_0rb0 gridTitle"><%=chk8%></td>
					<td width="55" class="lTD_0rb0 gridTitle"><%=chk9%></td>
					<td width="55" class="lTD_0rb0 gridTitle"><%=chk10%></td>
					<td width="55" class="lTD_0rb0 gridTitle"><%=chk11%></td>
					<td width="55" class="lTD_0rb0 gridTitle"><%=chk12%></td>
					<td width="55" class="lTD_0rb0 gridTitle"><%=chk13%></td>
					<td width="55" class="lTD_0rb0 gridTitle"><%=chk14%></td>
					<td width="55" class="lTD_0rb0 gridTitle"><%=chk15%></td>
					<td width="55" class="lTD_0rb0 gridTitle"><%=chk16%></td>
					<td width="55" class="lTD_0rb0 gridTitle"><%=chk17%></td>
					<td width="55" class="lTD_0rb0 gridTitle"><%=chk18%></td>
					<td width="55" class="lTD_0rb0 gridTitle"><%=chk19%></td>
					<td width="55" class="lTD_0rb0 gridTitle"><%=chk20%></td>
				</tr>
				<tr id="tr01Result" bgcolor="#FFFFFF" height="25" align="center">
					<td colspan="22" style="color:#948D88; BORDER-TOP: #abccf8 0px solid;" class="lTD_0rbl"><span id="loadSpan1" style="color:#CE7302">검색된 자료가 없습니다.</span></td>
				</tr>
				</thead>
				<tbody></tbody>
			</table>
			</form>
			</div>
			<table border="0" width="1325" cellpadding="0" cellspacing="0">
				<tr>
					<td align="left" colspan="6" bgcolor="FFFFFF" style="BORDER-BOTTOM: #abccf8 1px solid;BORDER-LEFT: #abccf8 1px solid;BORDER-TOP: #abccf8 1px solid;BORDER-RIGHT: #abccf8 1px solid;padding-top:0px">
						<table width="100%" border="0" cellpadding="0" cellspacing="0">
							<tr align="center" height="30">
								<td style="background-image:url(/inc/layout/panel-title-light-bg.gif)"><span id="pageDiv01"></span></td>
							</tr>									
						</table>
					</td>
				</tr>
			</table>
		</td>		
<!--		
		<td valign="top" style="text-align:center; padding-left:5px">
			<table border="0" cellpadding="0" cellspacing="0" width="500">
				<tr>
				  <td width="100%" class="lTD_trbl" style="padding: 5px 5px 5px 5px; text-align:center">
					<table border="0" cellpadding="0" cellspacing="0" width="490">
						<input type="hidden" name="userIdCheck" id="userIdCheck">
						<tr>
							<td height="30" width="490" class="lTD_00b0" style="padding: 0 0 0 20px; text-align:left; font-weight:bold">
								사용자 ID &nbsp; : &nbsp; <input type="text" name="userID" id="userId" size="15" class="specialBox"> &nbsp;&nbsp;
								<input type="button" onClick="fnDupIdCheck()" value="중복체크" class="inputBtn">
							</td>
						</tr>
						<tr>
							<td height="30" width="490" class="lTD_00b0" style="padding: 0 0 0 20px; text-align:left; font-weight:bold">
								이 &nbsp; &nbsp; &nbsp; &nbsp;름 &nbsp; : &nbsp;<input type="text" name="userNm" id="userNm" size="15" class="specialBox" style="margin-left:4px"> &nbsp; &nbsp; &nbsp;
								비밀번호 &nbsp; : &nbsp;<input type="<%=adminPass%>" name="passwd" id="passwd" size="15" class="specialBox">
							</td>
						</tr>
						<tr>
							<td height="30" width="490" class="lTD_00b0" style="padding: 0 0 0 20px; text-align:left; font-weight:bold">
								부 &nbsp; &nbsp; &nbsp; &nbsp;서 &nbsp; : &nbsp;<input type="text" name="uPart" id="uPart" size="15" class="inputBox" style="margin-left:4px"> &nbsp; &nbsp; &nbsp;
								연 락 처 &nbsp; &nbsp;: &nbsp;<input type="text" name="uPhone" id="uPhone" size="20" class="inputBox">
							</td>
						</tr>
						<tr>
							<td height="30" width="490" class="lTD_00b0" style="padding: 0 0 0 20px; text-align:left; font-weight:bold">
								&nbsp;&nbsp;E-mail&nbsp;&nbsp; &nbsp; : &nbsp;<input type="text" name="uEmail" id="uEmail" size="40" class="inputBox" style="margin-left:5px"> &nbsp; &nbsp;
								<select name="uLevel" id="uLevel" style="width:75px">
									<option value="">-Level-</option>
									<option value="10">일반</option>
									<option value="50">관리자</option>
								</select>
							</td>
						</tr>
						<tr>
							<td height="30" width="490" class="lTD_00b0" style="padding: 3px 0 3px 20px; text-align:left; font-weight:bold">
								권 &nbsp; &nbsp; &nbsp; &nbsp;한 &nbsp; : &nbsp;<input type="checkbox" id="p10" style="border:0">작업지시 <input type="checkbox" id="p20" style="border:0">거래처관리 
								<input type="checkbox" id="p30" style="border:0">단위공정 <input type="checkbox" id="p40" style="border:0;margin-left:12px">권한관리<br>
								<input type="checkbox" id="p50" style="border:0; margin-left:84px">제품관리 
								<input type="checkbox" id="p60" style="border:0">회계(입금) <input type="checkbox" id="p70" style="border:0">회계(출금) <input type="checkbox" id="p80" style="border:0">계정관리
							</td>
						</tr>
						<tr>
							<td width="490" class="lTD_00b0" style="padding: 10px 0 10px 20px; text-align:left; font-weight:bold">
								<textarea name="uRemark" id="uRemark" class="inputBox" style="width:450px; height:120px"></textarea>

							</td>
						</tr>
						<tr>
							<td height="30" width="490" class="lTD_00b0" style="padding: 0 0 0 20px; text-align:left; font-weight:bold">
								<select name="delYN" id="delYN">
									<option value="N">사용중</option>
									<option value="Y">중지</option>
								</select> &nbsp; &nbsp;<input type="text" id="accessInfo" style="font-weight:normal;width:250px; border:0px">
								<span>
								<input type="button" value="저장" class="inputBtn" onClick="fnSave()"> 
								<input type="button" value="신규" class="inputBtn" onClick="fnReset()">
								</span>
							</td>
						</tr>
					</table>
				  </td>
				</tr>
			</table>
		</td>	
-->	
	</tr>
</table>
</div>
<!-- 그리그 끝 -->

<script language="javascript">
	setMainMenu();
<%
	if hisRule <> "" then Response.write "fnSaveRule();"
%>
	setTimeout("grid01List()",1000);
</script>
</BODY>
</HTML>